package com.adms.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMessageIdIsNull() {
            addCriterion("message.message_id is null");
            return (Criteria) this;
        }

        public Criteria andMessageIdIsNotNull() {
            addCriterion("message.message_id is not null");
            return (Criteria) this;
        }

        public Criteria andMessageIdEqualTo(Integer value) {
            addCriterion("message.message_id =", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdNotEqualTo(Integer value) {
            addCriterion("message.message_id <>", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdGreaterThan(Integer value) {
            addCriterion("message.message_id >", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("message.message_id >=", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdLessThan(Integer value) {
            addCriterion("message.message_id <", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdLessThanOrEqualTo(Integer value) {
            addCriterion("message.message_id <=", value, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdIn(List<Integer> values) {
            addCriterion("message.message_id in", values, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdNotIn(List<Integer> values) {
            addCriterion("message.message_id not in", values, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdBetween(Integer value1, Integer value2) {
            addCriterion("message.message_id between", value1, value2, "messageId");
            return (Criteria) this;
        }

        public Criteria andMessageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("message.message_id not between", value1, value2, "messageId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("message.user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("message.user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("message.user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("message.user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("message.user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("message.user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("message.user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("message.user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("message.user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("message.user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("message.user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("message.user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andReformIdIsNull() {
            addCriterion("message.reform_id is null");
            return (Criteria) this;
        }

        public Criteria andReformIdIsNotNull() {
            addCriterion("message.reform_id is not null");
            return (Criteria) this;
        }

        public Criteria andReformIdEqualTo(Integer value) {
            addCriterion("message.reform_id =", value, "reformId");
            return (Criteria) this;
        }

        public Criteria andReformIdNotEqualTo(Integer value) {
            addCriterion("message.reform_id <>", value, "reformId");
            return (Criteria) this;
        }

        public Criteria andReformIdGreaterThan(Integer value) {
            addCriterion("message.reform_id >", value, "reformId");
            return (Criteria) this;
        }

        public Criteria andReformIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("message.reform_id >=", value, "reformId");
            return (Criteria) this;
        }

        public Criteria andReformIdLessThan(Integer value) {
            addCriterion("message.reform_id <", value, "reformId");
            return (Criteria) this;
        }

        public Criteria andReformIdLessThanOrEqualTo(Integer value) {
            addCriterion("message.reform_id <=", value, "reformId");
            return (Criteria) this;
        }

        public Criteria andReformIdIn(List<Integer> values) {
            addCriterion("message.reform_id in", values, "reformId");
            return (Criteria) this;
        }

        public Criteria andReformIdNotIn(List<Integer> values) {
            addCriterion("message.reform_id not in", values, "reformId");
            return (Criteria) this;
        }

        public Criteria andReformIdBetween(Integer value1, Integer value2) {
            addCriterion("message.reform_id between", value1, value2, "reformId");
            return (Criteria) this;
        }

        public Criteria andReformIdNotBetween(Integer value1, Integer value2) {
            addCriterion("message.reform_id not between", value1, value2, "reformId");
            return (Criteria) this;
        }

        public Criteria andReplyIdIsNull() {
            addCriterion("message.reply_id is null");
            return (Criteria) this;
        }

        public Criteria andReplyIdIsNotNull() {
            addCriterion("message.reply_id is not null");
            return (Criteria) this;
        }

        public Criteria andReplyIdEqualTo(Integer value) {
            addCriterion("message.reply_id =", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdNotEqualTo(Integer value) {
            addCriterion("message.reply_id <>", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdGreaterThan(Integer value) {
            addCriterion("message.reply_id >", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("message.reply_id >=", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdLessThan(Integer value) {
            addCriterion("message.reply_id <", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdLessThanOrEqualTo(Integer value) {
            addCriterion("message.reply_id <=", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdIn(List<Integer> values) {
            addCriterion("message.reply_id in", values, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdNotIn(List<Integer> values) {
            addCriterion("message.reply_id not in", values, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdBetween(Integer value1, Integer value2) {
            addCriterion("message.reply_id between", value1, value2, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("message.reply_id not between", value1, value2, "replyId");
            return (Criteria) this;
        }

        public Criteria andDelayIdIsNull() {
            addCriterion("message.delay_id is null");
            return (Criteria) this;
        }

        public Criteria andDelayIdIsNotNull() {
            addCriterion("message.delay_id is not null");
            return (Criteria) this;
        }

        public Criteria andDelayIdEqualTo(Integer value) {
            addCriterion("message.delay_id =", value, "delayId");
            return (Criteria) this;
        }

        public Criteria andDelayIdNotEqualTo(Integer value) {
            addCriterion("message.delay_id <>", value, "delayId");
            return (Criteria) this;
        }

        public Criteria andDelayIdGreaterThan(Integer value) {
            addCriterion("message.delay_id >", value, "delayId");
            return (Criteria) this;
        }

        public Criteria andDelayIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("message.delay_id >=", value, "delayId");
            return (Criteria) this;
        }

        public Criteria andDelayIdLessThan(Integer value) {
            addCriterion("message.delay_id <", value, "delayId");
            return (Criteria) this;
        }

        public Criteria andDelayIdLessThanOrEqualTo(Integer value) {
            addCriterion("message.delay_id <=", value, "delayId");
            return (Criteria) this;
        }

        public Criteria andDelayIdIn(List<Integer> values) {
            addCriterion("message.delay_id in", values, "delayId");
            return (Criteria) this;
        }

        public Criteria andDelayIdNotIn(List<Integer> values) {
            addCriterion("message.delay_id not in", values, "delayId");
            return (Criteria) this;
        }

        public Criteria andDelayIdBetween(Integer value1, Integer value2) {
            addCriterion("message.delay_id between", value1, value2, "delayId");
            return (Criteria) this;
        }

        public Criteria andDelayIdNotBetween(Integer value1, Integer value2) {
            addCriterion("message.delay_id not between", value1, value2, "delayId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdIsNull() {
            addCriterion("message.execute_id is null");
            return (Criteria) this;
        }

        public Criteria andExecuteIdIsNotNull() {
            addCriterion("message.execute_id is not null");
            return (Criteria) this;
        }

        public Criteria andExecuteIdEqualTo(Integer value) {
            addCriterion("message.execute_id =", value, "executeId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdNotEqualTo(Integer value) {
            addCriterion("message.execute_id <>", value, "executeId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdGreaterThan(Integer value) {
            addCriterion("message.execute_id >", value, "executeId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("message.execute_id >=", value, "executeId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdLessThan(Integer value) {
            addCriterion("message.execute_id <", value, "executeId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdLessThanOrEqualTo(Integer value) {
            addCriterion("message.execute_id <=", value, "executeId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdIn(List<Integer> values) {
            addCriterion("message.execute_id in", values, "executeId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdNotIn(List<Integer> values) {
            addCriterion("message.execute_id not in", values, "executeId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdBetween(Integer value1, Integer value2) {
            addCriterion("message.execute_id between", value1, value2, "executeId");
            return (Criteria) this;
        }

        public Criteria andExecuteIdNotBetween(Integer value1, Integer value2) {
            addCriterion("message.execute_id not between", value1, value2, "executeId");
            return (Criteria) this;
        }

        public Criteria andSignIdIsNull() {
            addCriterion("message.sign_id is null");
            return (Criteria) this;
        }

        public Criteria andSignIdIsNotNull() {
            addCriterion("message.sign_id is not null");
            return (Criteria) this;
        }

        public Criteria andSignIdEqualTo(Integer value) {
            addCriterion("message.sign_id =", value, "signId");
            return (Criteria) this;
        }

        public Criteria andSignIdNotEqualTo(Integer value) {
            addCriterion("message.sign_id <>", value, "signId");
            return (Criteria) this;
        }

        public Criteria andSignIdGreaterThan(Integer value) {
            addCriterion("message.sign_id >", value, "signId");
            return (Criteria) this;
        }

        public Criteria andSignIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("message.sign_id >=", value, "signId");
            return (Criteria) this;
        }

        public Criteria andSignIdLessThan(Integer value) {
            addCriterion("message.sign_id <", value, "signId");
            return (Criteria) this;
        }

        public Criteria andSignIdLessThanOrEqualTo(Integer value) {
            addCriterion("message.sign_id <=", value, "signId");
            return (Criteria) this;
        }

        public Criteria andSignIdIn(List<Integer> values) {
            addCriterion("message.sign_id in", values, "signId");
            return (Criteria) this;
        }

        public Criteria andSignIdNotIn(List<Integer> values) {
            addCriterion("message.sign_id not in", values, "signId");
            return (Criteria) this;
        }

        public Criteria andSignIdBetween(Integer value1, Integer value2) {
            addCriterion("message.sign_id between", value1, value2, "signId");
            return (Criteria) this;
        }

        public Criteria andSignIdNotBetween(Integer value1, Integer value2) {
            addCriterion("message.sign_id not between", value1, value2, "signId");
            return (Criteria) this;
        }

        public Criteria andCircularIdIsNull() {
            addCriterion("message.circular_id is null");
            return (Criteria) this;
        }

        public Criteria andCircularIdIsNotNull() {
            addCriterion("message.circular_id is not null");
            return (Criteria) this;
        }

        public Criteria andCircularIdEqualTo(Integer value) {
            addCriterion("message.circular_id =", value, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularIdNotEqualTo(Integer value) {
            addCriterion("message.circular_id <>", value, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularIdGreaterThan(Integer value) {
            addCriterion("message.circular_id >", value, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("message.circular_id >=", value, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularIdLessThan(Integer value) {
            addCriterion("message.circular_id <", value, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularIdLessThanOrEqualTo(Integer value) {
            addCriterion("message.circular_id <=", value, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularIdIn(List<Integer> values) {
            addCriterion("message.circular_id in", values, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularIdNotIn(List<Integer> values) {
            addCriterion("message.circular_id not in", values, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularIdBetween(Integer value1, Integer value2) {
            addCriterion("message.circular_id between", value1, value2, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularIdNotBetween(Integer value1, Integer value2) {
            addCriterion("message.circular_id not between", value1, value2, "circularId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdIsNull() {
            addCriterion("message.circular_reply_id is null");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdIsNotNull() {
            addCriterion("message.circular_reply_id is not null");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdEqualTo(Integer value) {
            addCriterion("message.circular_reply_id =", value, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdNotEqualTo(Integer value) {
            addCriterion("message.circular_reply_id <>", value, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdGreaterThan(Integer value) {
            addCriterion("message.circular_reply_id >", value, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("message.circular_reply_id >=", value, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdLessThan(Integer value) {
            addCriterion("message.circular_reply_id <", value, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdLessThanOrEqualTo(Integer value) {
            addCriterion("message.circular_reply_id <=", value, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdIn(List<Integer> values) {
            addCriterion("message.circular_reply_id in", values, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdNotIn(List<Integer> values) {
            addCriterion("message.circular_reply_id not in", values, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdBetween(Integer value1, Integer value2) {
            addCriterion("message.circular_reply_id between", value1, value2, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andCircularReplyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("message.circular_reply_id not between", value1, value2, "circularReplyId");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("message.title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("message.title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("message.title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("message.title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("message.title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("message.title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("message.title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("message.title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("message.title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("message.title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("message.title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("message.title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("message.title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("message.title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("message.content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("message.content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("message.content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("message.content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("message.content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("message.content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("message.content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("message.content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("message.content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("message.content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("message.content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("message.content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("message.content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("message.content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("message.type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("message.type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("message.type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("message.type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("message.type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("message.type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("message.type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("message.type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("message.type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("message.type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("message.type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("message.type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("message.type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("message.type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("message.create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("message.create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("message.create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("message.create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("message.create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("message.create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("message.create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("message.create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("message.create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("message.create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("message.create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("message.create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andIsClickedIsNull() {
            addCriterion("message.is_clicked is null");
            return (Criteria) this;
        }

        public Criteria andIsClickedIsNotNull() {
            addCriterion("message.is_clicked is not null");
            return (Criteria) this;
        }

        public Criteria andIsClickedEqualTo(Boolean value) {
            addCriterion("message.is_clicked =", value, "isClicked");
            return (Criteria) this;
        }

        public Criteria andIsClickedNotEqualTo(Boolean value) {
            addCriterion("message.is_clicked <>", value, "isClicked");
            return (Criteria) this;
        }

        public Criteria andIsClickedGreaterThan(Boolean value) {
            addCriterion("message.is_clicked >", value, "isClicked");
            return (Criteria) this;
        }

        public Criteria andIsClickedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("message.is_clicked >=", value, "isClicked");
            return (Criteria) this;
        }

        public Criteria andIsClickedLessThan(Boolean value) {
            addCriterion("message.is_clicked <", value, "isClicked");
            return (Criteria) this;
        }

        public Criteria andIsClickedLessThanOrEqualTo(Boolean value) {
            addCriterion("message.is_clicked <=", value, "isClicked");
            return (Criteria) this;
        }

        public Criteria andIsClickedIn(List<Boolean> values) {
            addCriterion("message.is_clicked in", values, "isClicked");
            return (Criteria) this;
        }

        public Criteria andIsClickedNotIn(List<Boolean> values) {
            addCriterion("message.is_clicked not in", values, "isClicked");
            return (Criteria) this;
        }

        public Criteria andIsClickedBetween(Boolean value1, Boolean value2) {
            addCriterion("message.is_clicked between", value1, value2, "isClicked");
            return (Criteria) this;
        }

        public Criteria andIsClickedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("message.is_clicked not between", value1, value2, "isClicked");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}